package com.atxiaodei.kabudashejimoshi.工厂模式.简单工厂;

/**
 * @ClassName Demo
 * @Deacription 客户端测试
 * @Author 卡布达
 * @Date 2021/10/11 23:36
 * @Version 1.0
 **/
public class Demo {
    public static void main(String[] args) {
   /*     ICourse course=new JavaCourse();

        course.record();*/

        // 利用工厂类调用
        CourseFactory factory = new CourseFactory();
        ICourse course1=factory.create("java");
        ICourse course2=factory.create("python");
        course1.record();
        course2.record();

    }
}
